package io.stream;

import framework.AbstractTest;
import utils.Log;

import java.io.BufferedReader;
import java.io.InputStreamReader;

/**
 * Created by shane on 2018/5/21.
 */
public class Echo extends AbstractTest {

    @Override
    public void test(String[] args) {
        super.test(args);

        try {
            BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
            String s;
            while ((s = in.readLine()) != null && s.length() != 0) {
                Log.vn(s);
            }
        } catch (Exception e) {
            e.printStackTrace();
        }

    }

    @Override
    protected String getTag() {
        return TAG;
    }
}
